/**
 * Created by Lyon on 2017/5/11.
 */

//底部导航栏点击跳转页面函数
function nav_tab() {
    var nav = document.getElementById("bottomx");
    var nav_tab = nav.getElementsByClassName("mui-tab-item");
    for (var i = 0; i < nav_tab.length; i++) {
        (function (x) {
            nav_tab[x].addEventListener('tap', function () {
                window.location.href = this.href;
            });
        })(i)
    }
}

$(function () {

    var href_btns = document.getElementsByClassName("href_btn");

    for (var i = 0; i < href_btns.length; i++) {
        href_btns[i].addEventListener('tap', function () {
            var data_href = this.getAttribute("data-href");
            mui.openWindow({url: data_href, id: data_href})
        })
    }
});


